#include "stdio.h"
char* match(char s[],char ch);
int main(void)
{
    char ch, str[80], *p = NULL;
    scanf("%s", str);
    getchar(); 
    while((ch = getchar())!='\n')  
    {
        if((p = match(str, ch)) != NULL)  
            printf("%s\n", p);
            else 
                printf("Not Found\n");
    }
    return 0;
}
char* match(char s[],char ch)
{
    while(*s) 
        if(*s==ch) 
           return s; 
         else 
           s++; 
     return NULL;
} 